﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XT.Model;
using XT.Repository;

namespace XT.BusinessService
{
    public class AmentityService : IAmentityService
    {
        private readonly IUow _uow;
        public AmentityService(IUow uow)
        {
            _uow = uow;
        }

        public IEnumerable<Amentity> GetAmentities()
        {
            return _uow.AmentityRepo.FindAll<Amentity>(o => o.OrderBy(c => c.Id));
        }
    }
}
